<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of TypeBusinessForm
 *
 * @author WIN7
 */
class TypeBusinessForm extends CFormModel {

    public function getDatabase() {
        $connection = Yii::app()->db;
        $sql = "SELECT * FROM os_typebusiness";
        $data = $connection->createCommand($sql)->query();
        $rows_typebusiness = array();
        while ($row = $data->read()) {
            $rows_typebusiness[] = $row;
        }
        return $rows_typebusiness;
    }
}

?>
